import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { SysCommentService } from './sys_comment.service';
import { CreateSysCommentDto } from './dto/create-sys_comment.dto';
import { UpdateSysCommentDto } from './dto/update-sys_comment.dto';

@Controller('sys-comment')
export class SysCommentController {
  constructor(private readonly sysCommentService: SysCommentService) {}

  @Post()
  create(@Body() createSysCommentDto: CreateSysCommentDto) {
    return this.sysCommentService.create(createSysCommentDto);
  }

  @Get()
  findAll() {
    return this.sysCommentService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.sysCommentService.findOne(id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateSysCommentDto: UpdateSysCommentDto) {
    return this.sysCommentService.update(id, updateSysCommentDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.sysCommentService.remove(id);
  }
}
